<me:UIAB50 x:Class="WPFExcelReport.TAB50YD"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    xmlns:MCO="clr-namespace:WPFExcelReport;assembly=TICC_ABPOS_MCO"
                    xmlns:GW="clr-namespace:WPFExcelReport;assembly=TGABEW" 
                    Background="White"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIAB50.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIAB50.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
          
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0">
            <TextBlock Text="{Binding JW,ElementName=TV}"/>
            <TextBlock Margin="10,0,0,0"  Text="{Binding Source={Localization:Translate Word=下单}}"></TextBlock>
            <TextBlock Text="{Binding ABPNEUDAT,Source={StaticResource vwMaster} }"/>
            <TextBlock Margin="10,0,0,0"  Text="{Binding Source={Localization:Translate Word=完成}}"></TextBlock>
            <TextBlock Text="{Binding ABPERLDAT,Source={StaticResource vwMaster} }"/>
        </WrapPanel>
        <WrapPanel Grid.Row="1" >
            <TextBlock Text="{Binding TKEY1}"  Margin="10,0,0,0"></TextBlock>
            <TextBlock Text="{Binding SUM1,Converter={StaticResource d100}}" Foreground="Red" Margin="10,0,0,0"></TextBlock>
            <TextBlock Text="{Binding TKEY2}"   Margin="10,0,0,0"></TextBlock>
            <TextBlock Text="{Binding SUM2,Converter={StaticResource d100}}" Foreground="Red" Margin="10,0,0,0"></TextBlock>
            <TextBlock Text="{Binding TCOUNT1}"   Margin="10,0,0,0"></TextBlock>
        </WrapPanel>
        <DataGrid  Grid.Row="2"  
                   Grid.Column="0"
                   VerticalAlignment="Top" 
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column"  
                   ItemsSource="{Binding Source={StaticResource vwMaster}}"  
                   IsSynchronizedWithCurrentItem="True" 
                    x:Name="dlgMaster"   
                >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=ABPAUFLFD, Converter={StaticResource pnum}}" Header="{Binding Source={Localization:Translate Word=生产单}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPFARBE}" Header="{Binding Source={Localization:Translate Word=色号}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPSOLLMENGE5, Converter={StaticResource d100}}" Header="{Binding Source={Localization:Translate Word=计划量}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPEAKG, Converter={StaticResource d100}}" Header="{Binding Source={Localization:Translate Word=产量}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ABPERLKZ}" Header="{Binding Source={Localization:Translate Word=完成}}" Width="Auto" />
              </DataGrid.Columns>
        </DataGrid>
       
    </Grid>
</me:UIAB50>
